package com.zdkj.subway.check.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zdkj.subway.check.entity.SwStMarketingTicket;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

/**
 * 营销车票审核主表
 */
@Mapper
public interface SwStMarketingTicketMapper extends BaseMapper<SwStMarketingTicket> {
    IPage<SwStMarketingTicket> getSwStMarketingTicket(Page page, @Param("param") Map<String, Object> param);

    /**
     * 营销车票数据审核点击生成电子回执单“对账数据”
     * @param startDateLocalDate
     * @param endDateLocalDate
     * @return
     */
    List<Map<String,Object>> getElectronicReceipt(@Param("startDate") LocalDate startDateLocalDate,
                                                  @Param("endDate")LocalDate endDateLocalDate);

    //营销车票数据审核点击生成电子回执单“对账数据”
    boolean updateExecuteStatus(@Param("startDate") LocalDate startDateLocalDate,
                                @Param("endDate")LocalDate endDateLocalDate);
}
